package rfcomm;

import java.util.ArrayList;
import java.util.List;

public class Envelope {
	private List<PairNeighborConnection> pairs;
	private String token;
	
	public Envelope() {
		pairs = new ArrayList<PairNeighborConnection>();
		token = " ";
	}

	public synchronized void setPaired(PairNeighborConnection pairNeighborConnection) {
		pairs.add(pairNeighborConnection);
	}

	public synchronized List<PairNeighborConnection> getPaired() {
		return pairs;
	}
	
	public synchronized String getToken() {
	    return token;
	}
	
	public synchronized void setToken(String token) {
	    this.token = token;
	}
}